package com.csvw.skr.newTask.entity.inspection;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2016/12/9.
 */
@Entity
@Table(name = "csvw_skr_task_inspection_plan_assignment")
public class PlanAssignment {
    /**
     * 店头点检计划的ID， inspectionId_assignmentId
     */
    @Id
    @Column(name = "pk_id", length = 100)
    private String id;
    /**
     * 店头点检ID
     */
    private String inspectionId;
    /**
     * 任务Id
     */
    private String assignmentId;

    /**
     * 任务是否检查通过
     */
    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean finish;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInspectionId() {
        return inspectionId;
    }

    public void setInspectionId(String inspectionId) {
        this.inspectionId = inspectionId;
    }

    public String getAssignmentId() {
        return assignmentId;
    }

    public void setAssignmentId(String assignmentId) {
        this.assignmentId = assignmentId;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }
}
